<?php


namespace App\Http\Services;


use GuzzleHttp\Client;

class HttpClient
{
//    protected $response;

    public function post($url,$body=[]){
        $client = new Client();
        $response = $client->request('POST',$url,$body);

        return $response->getBody()->getContents();
    }

    public function get($url,$header){
        $client = new Client();
        $response = $client->request('GET',$url,['headers' => $header]);

        return $response->getBody()->getContents();
    }
}
